package com.recharge.api.service.impl;

import com.recharge.api.mapper.OperatorMapper;
import com.recharge.api.model.Operators;
import com.recharge.api.service.OperatorService;
import com.recharge.api.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperatorServiceImpl implements OperatorService {

    @Autowired
    private OperatorMapper operatorMapper;

    @Override
    public Result getOperatorList() {
        List<Operators> operators = operatorMapper.selectList(null);
        return Result.success(operators);
    }
}
